import { call, put, takeEvery,fork } from 'redux-saga/effects'
import { createWsApiSaga } from '@animando/stompjs-redux-saga';
import { subscriptions, testPublishDefinitions } from './routines';




const stompConnectionConfig = {
  sockJsEndpoint: 'http://localhost:8080/live',
}

const wsSaga = createWsApiSaga(stompConnectionConfig, {
  subscriptions,
  publishDefinitions: testPublishDefinitions
})

function* rootSaga() {
  yield fork(wsSaga);
}

export default rootSaga;